home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / ge_cool.lha / GE_COOL2.1 / src / Stack / TODO < prev   
Text File  |  1992-04-22  |  693b  |  26 lines

  1.  
  2. File: Stack.h
  3.  
  4. Fix memory leak, in &=, |=, ^=, -=. 
  5. The leak comes from returning by value, a stack allocated on the heap.
  6. The stack is copied and returned, and the one on the heap is never deleted.
  7. DONE
  8.  
  9. Add a general purpose protected grow method
  10. DONE
  11.  
  12.   push pushn
  13.   use the grow method.
  14. DONE
  15.  
  16.  operator==, find, position
  17.  These sit in a loop calling (*this->compare).  Instead, make this->compare
  18.  default to NULL, and have two loops: one for the default case where
  19.  operator== on the value type is used, and another calling (*this->compare).
  20. DONE
  21.  
  22.  Stack<Type>(int n, Type* data)
  23.  Write a new constructor which makes a fixed size Stack which shares
  24.  storage with the data argument.
  25. DONE
  26.